﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.CustomerManage.StartOrder
{
    public partial class FrmModifyPhotoEditHW : Form
    {
        //属性
        public FrmEditOrder EditOrder { get; set; }
        public string Unit { get; set; }
        public FrmModifyPhotoEditHW()
        {
            InitializeComponent();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            float height = (float)Convert.ToDouble(spinHeight.Text);
            float width = (float)Convert.ToDouble(spinWidth.Text);
            EditOrder.ModifyPhotoHeight = height;
            EditOrder.ModifyPhotoWidth = width;
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void FrmModifyPhotoHW_Load(object sender, EventArgs e)
        {
            cbUnit.Text = Unit;
        }
    }
}
